package com.woniu.register.service.impl;

import com.woniu.register.dto.PledgeDTO;
import com.woniu.register.entity.Pledge;
import com.woniu.register.mapper.PledgeMapper;
import com.woniu.register.service.PledgeService;
import com.woniu.register.VO.PledgeProposerVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：zhulongxing
 * @date ：Created in 2022/12/6 19:25
 * @description：
 * @modified By：
 * @version: $
 */
@Service
public class PledgeServiceImpl implements PledgeService {
    @Autowired
    PledgeMapper pledgeMapper;

    public int deleteByPrimaryKey(Long id) {
        return pledgeMapper.deleteByPrimaryKey(id);
    }

    public int insert(Pledge record) {
        return pledgeMapper.insert(record);
    }

    public int insertSelective(Pledge record) {
        return pledgeMapper.insertSelective(record);
    }

    public Pledge selectByPrimaryKey(Long id) {
        return pledgeMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Pledge record) {
        return pledgeMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Pledge record) {
        return pledgeMapper.updateByPrimaryKey(record);
    }

}
